Edit Resource: Capacity
Description
The Capacity attribute under EditResource defines the different values for the capacity of a resource when IsCapacityApplicable is set to "TRUE" .
Parameters
Parameter | Description |
---|---|
CapacityType | Options are either 'Resilient' or 'Consumable' or 'StateModes'. |
MinCapacity | Positive numerical values >0. |
MaxCapacity | Positive numerical values >0. |
InitialCapacity | A numerical value that is in between the range of MinCapacity and MaxCapacity. |
MinCapacityLimit | Options are either 'Hard' or 'Soft'. |
MaxCapacityLimit | Options are either 'Hard' or 'Soft'. |
Units | A string of text of the type of unit. An empty string is allowed. |
ModeNames | A string of text of the mode names |
Examples
The resource SSR is consumable and has a maximum capacity of 100MB, with initial capacity of 100MB.
PATCH api/resource/SSR
Body:
{
"Capacity" : {
"MinCapacity" : "0",
"MinCapacityLimit" : "Hard",
"MaxCapacity" : "100",
"MaxCapacityLimit" : "Soft",
"InitialCapacity" : "100",
"Units" : "Mbytes" }
}